﻿using System;
using System.Collections.Generic;

namespace h45
{
    class Program
    {
        static void Main(string[] args)
        {
            Solution solution=new Solution();
            int[] A = new[] {1,0,0,1,0,1,0,0,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,0,0,0,0,1,1,0,1,0,0,0};
            Console.WriteLine(solution.CheckIfFive(A,A.Length));
            // IList<bool> r = solution.PrefixesDivBy5(A);
            // Console.WriteLine(r);
        }
    }
}